<?php
	include("global.php");
?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<title></title>
<link href="css/main.css" rel="stylesheet" type="text/css" />
<link href="css/div.css" rel="stylesheet" type="text/css" />
<script src="js/jquery.js" language="javascript" type="text/javascript"></script>
<script src="js/jquery-1.4.2.js" language="javascript" type="text/javascript"></script>
<script src="js/secondmenu.js" language="javascript" type="text/javascript"></script>
<style type="text/css">
.pages { height:25px; overflow:hidden; text-align:center; line-height:25px; font-family:Verdana; }
.pages a, .pages strong { margin:0 1px; padding:2px 6px; border:1px solid #E4E4E4; text-decoration:none!important; }
.pages a:hover { border-color:#369; color:369 }
.backs { border-color:#369; background:#369; color:#FFF; }
.pages .prev { padding:4px 6px 2px 20px!important; padding:4px 6px 0 20px; background:url(images/arrow_left.gif) no-repeat 9% 50%; font-family:simsun; }
.next { padding:4px 20px 2px 6px!important; padding:4px 20px 0 6px; background:url(images/arrow_right.gif) no-repeat 91% 50%; font-family:simsun; }
</style>
<script type="text/javascript">
	$(function(){
		$("#fenye a").click( function() {
			$(this).addClass("backs");
		});
	});	 
</script>

</head>
<?php
	include("conn/conn.php");
?>
<body>
<div class="box1">
	<?php include("top.php"); ?>
		<embed src="diy/pics/20100623/1.swf" width="1002" height="254" style="position: absolute; left: 18%; top: 100px;"  quality="high" wmode="transparent"  />
			<img src="diy/pics/20100623/xinxizhongxin.png" border="0" width="1002" />
		  </div>
		</div>
		<div style=" height:10px;">&nbsp;</div>
	
	<div style=" height:20px;">&nbsp;</div>
	<div style=" width:1003px;">
		<div style=" width:200px; overflow:hidden; float:left;">
			
			<?php
				include("quick_tree.php");
				include("search.php");
				if(isset($_GET["id"])){
					$ids = $_GET["id"];
					if($ids==21){
						$sql1 = mysql_query("select count(*) as counts from `article` where typeid = 21");
						$counts =  mysql_result($sql1,0,"counts");
						$page = intval($counts/12);		
						if (isset($_GET["pages"])) {
							$pages = $_GET["pages"];
							$sql = mysql_query("SELECT typeid,title,contents,addtime,id FROM `article`  where typeid = 21 order by addtime desc LIMIT ".(12*$pages).", 12 ");
						}else{
							$sql = mysql_query("SELECT typeid,title,contents,addtime,id FROM `article`  where typeid = 21 order by addtime desc LIMIT 0, 12 ");
						}
					}
					if($ids==20){
						$sql1 = mysql_query("select count(*) as counts from `article` where typeid = 20");
						$counts =  mysql_result($sql1,0,"counts");
						$page = intval($counts/12);		
						if (isset($_GET["pages"])) {
							$pages = $_GET["pages"];
							$sql = mysql_query("SELECT typeid,title,contents,addtime,id FROM `article`  where typeid = 20 order by addtime desc LIMIT ".(12*$pages).", 12 ");
						}else{
							$sql = mysql_query("SELECT typeid,title,contents,addtime,id FROM `article`  where typeid = 20 order by addtime desc LIMIT 0, 12 ");
						}
					}
					if($ids==26){
						$sql1 = mysql_query("select count(*) as counts from `article` where typeid = 26");
						$counts =  mysql_result($sql1,0,"counts");
						$page = intval($counts/12);		
						if (isset($_GET["pages"])) {
							$pages = $_GET["pages"];
							$sql = mysql_query("SELECT typeid,title,contents,addtime,id FROM `article`  where typeid = 26 order by addtime desc LIMIT ".(12*$pages).", 12 ");
						}else{
							$sql = mysql_query("SELECT typeid,title,contents,addtime,id FROM `article`  where typeid = 26 order by addtime desc LIMIT 0, 12 ");
						}
					}
					
				}else{
					$sql1 = mysql_query("select count(*) as counts from `article` where typeid = 21");
					$counts =  mysql_result($sql1,0,"counts");
					$page = intval($counts/12);		
					if (isset($_GET["pages"])) {
						$pages = $_GET["pages"];
						$sql = mysql_query("SELECT typeid,title,contents,addtime,id FROM `article`  where typeid = 21 order by addtime desc LIMIT ".(12*$pages).", 12 ");
					}else{
						$sql = mysql_query("SELECT typeid,title,contents,addtime,id FROM `article`  where typeid = 21 order by addtime desc LIMIT 0, 12 ");
					}
				}
			?>
		</div>
		<div style="float:left; width:50px;">&nbsp;</div>
		<div style=" float:left; width:750px;">
			<div style=" width: 750px; background-color:#8DBAE0; height:5px;"></div>
			<div style=" width:200px; height:15px;">&nbsp;</div>
			<div style=" width:750px; height:20px;">
				<span style=" float:left; text-align:left;color:#768DC1; font-size:15px; font-weight:bolder; height:30px;">意见箱</span><span style=" float:right;text-align:right" id="span1"><a href="index.php">首页</a>-><a href="news.php?id=21">信息中心</a>-><a href="suggestionbox_ch.php">意见箱</a></span>
			</div>
			<div style=" height:10px;">&nbsp;</div>
			<div style=" width:750px; text-align:center; height:460px; line-height:30px;">
						<div  style=" width:750px; text-align:left; clear:both; color:#FF7200; font-size: 18px; ">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<strong>&nbsp;关注我们，共创和谐</strong></div>
						<br />
				<?php
				if(isset($_POST["submit"])){
					$Title = $_POST["Title"];
					$From = $_POST["From"];
					$Phone = $_POST["Phone"];
					$Email = $_POST["Email"];
					$Address = $_POST["Address"];
					$Content = $_POST["Content"];
					
					$sql = mysql_query("insert into yijianxiang values('','$Title','$From','$Phone','$Email','$Address','$Content','1')");
					if($sql){
						echo "<script>alert('提交成功');</script>";
					}
					
				}
			?>
				<form action="" method="post" name="form1">
				<div  style=" width:750px; text-align:left; ">
					<div style="width:50px; font-weight:bolder; float:left; height:20px; line-height:20px; text-align:right">标题:</div>
					<div style="width:20px; float:left; height:20px; line-height:20px;">&nbsp;</div>
					<div style="height:20px; float:left; line-height:20px; border-bottom:1px solid #999999"><input name="Title" type="text" style="width:260px;" /></div>
				</div>
				<div style=" clear:both; height:20px;"></div>
				<div  style=" width:750px; text-align:left; ">
					<div style="width:50px; font-weight:bolder; float:left; height:20px; line-height:20px; text-align:right">来自:</div>
					<div style="width:20px; float:left; height:20px; line-height:20px;">&nbsp;</div>
					<div style="height:20px; float:left; line-height:20px; border-bottom:1px solid #999999"><input name="From" type="text" style="width:260px;" /></div>
				</div>
				<div style=" clear:both; height:20px;"></div>
				<div  style=" width:750px; text-align:left; ">
					<div style="width:50px; font-weight:bolder; float:left; height:20px; line-height:20px; text-align:right">电话:</div>
					<div style="width:20px; float:left; height:20px; line-height:20px;">&nbsp;</div>
					<div style="height:20px; float:left; line-height:20px; border-bottom:1px solid #999999"><input name="Phone" type="text" style="width:260px;" /></div>
				</div>
				<div style=" clear:both; height:20px;"></div>
				<div  style=" width:750px; text-align:left; ">
					<div style="width:50px; font-weight:bolder; float:left; height:20px; line-height:20px; text-align:right">邮箱:</div>
					<div style="width:20px; float:left; height:20px; line-height:20px;">&nbsp;</div>
					<div style="height:20px; float:left; line-height:20px; border-bottom:1px solid #999999"><input name="Email" type="text" style="width:260px;" /></div>
				</div>
				<div style=" clear:both; height:20px;"></div>
				<div  style=" width:750px; text-align:left; ">
					<div style="width:50px; font-weight:bolder; float:left; height:20px; line-height:20px; text-align:right">地址:</div>
					<div style="width:20px; float:left; height:20px; line-height:20px;">&nbsp;</div>
					<div style="height:20px; float:left; line-height:20px; border-bottom:1px solid #999999"><input name="Address" type="text" style="width:260px;" /></div>
				</div>
				<div style=" clear:both; height:20px;"></div>
				<div  style=" width:750px; text-align:left; ">
					<div style="width:50px; font-weight:bolder; float:left; height:20px; line-height:20px; text-align:right">意见:</div>
					<div style="width:20px; float:left; height:20px; line-height:20px;">&nbsp;</div>
					<div style="height:20px; float:left; line-height:20px;"><textarea name="Content" rows="6" cols="31" style=" border:1px solid #CCCCCC; height:80px;"></textarea></div>
				</div>
				<br /><br />
				<div style=" clear:both; height:70px;"></div>
				<div  style=" width:750px; text-align:left; ">
				 <div style="">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
				   <input class="submit1" type="submit" value="提交" name="submit2" style="width:60px; height:25px;"/>
				   &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
			      <input class="reset" type="reset" value="重置" name="reset" style="width:60px; height:25px;"/></div>
		</form>
		 <br />
		 <br />
		 <br />
				</div>
			</form>
			</div>

		</div>
	</div>
	<?php include("foot.php"); ?>
</div>
</body>
</html>

